﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Demo615
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            /* 登录成功页面显示“欢迎你，张三，你的密码是：123”(h1效果)*/
            string username=null;
            string password = null;
            string Method=Request.HttpMethod;
            if (Method=="GET")
            {
                username = Request.QueryString["UserName"];
                password = Request.QueryString["Password"];
            }
            else if (Method == "POST")
            {
                username = Request.Params["UserName"];
                password = Request.Params["Password"];
            }
            
            Response.Write($"<h1> 欢迎你，{username}，你的密码是：{password} </ h1> ");
        }
    }
}